﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="Vmago.Models" %>

<table border="0" cellpadding="5" cellspacing="0" width="100%">
    <tr><th colspan="4" align="left" style=" background-color:#A2C6EC">&nbsp;&nbsp;&nbsp;分店信息</th></tr>
    <tr><td bgcolor="#D0CED1" colspan="4" /></tr>
<%IEnumerable<ShopSubShop> ShopSubShops = (IEnumerable<ShopSubShop>)ViewData.Model;%>
<% if (ShopSubShops.Count().Equals(0))
   { %>
    <tr>
        <td colspan="4">无分店信息</td>
    </tr>
    <tr><td bgcolor="#D0CED1" colspan="4" /></tr>
<%} %>
<%
    else
    {
        foreach (ShopSubShop ShopSubShop in ShopSubShops)
        {
%>
    <tr>
        <td><img src="../../Content/img/public/iconStaffL.gif" /></td>
        <td><%=ShopSubShop.subShopName%></td>
        <td width="50" />
        <td><a><%=Html.ActionLink("店内详细信息请点击", "Trademark/" + ShopSubShop.subShopID, "City")%></a></td>
    </tr>
    <tr><td bgcolor="#D0CED1" colspan="4" /></tr>
<%
        }
    }
%>    
</table>
